<?php


namespace App\Models\Attributes;


/**
 * Description:
 * Author: hezhizheng
 * Date: 2018/11/14
 * Time: 14:41
 * Created by Created by Panxsoft.
 */

namespace App\Models\Attributes;


use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;

/**
 * 属性分组
 *
 * @mixin Builder
 */
class AttributeGroup extends Model
{
    protected $guarded = [];

    protected $table = 'attribute_group';

    protected $primaryKey = 'attribute_group_id';

    public function attributes()
    {
        return $this->hasMany(Attribute::class,'attribute_group_id','attribute_group_id');
    }

}
